package org.chenmin.tip.client.application.fileuploader;

import javax.inject.Inject;

import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.google.gwt.user.client.ui.Widget;
import com.gwtplatform.mvp.client.ViewImpl;

class FileUploaderView extends ViewImpl implements FileUploaderPresenter.MyView {
    interface Binder extends UiBinder<Widget, FileUploaderView> {
    }

    @UiField
    HTMLPanel main;

    @Inject
    FileUploaderView(Binder uiBinder) {
        initWidget(uiBinder.createAndBindUi(this));
    }
    
//    @Override
//    public void setInSlot(Object slot, IsWidget content) {
//        if (slot == FileUploaderPresenter.SLOT_FileUploader) {
//            main.add(content);
//        } else {
//            super.setInSlot(slot, content);
//        }
//    }
}